package app.auto.designer;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import app.auto.PermissionActiivty;
import app.auto.designer.R;
import app.auto.designer.func.ExpActivity;
import app.auto.designer.tool.Util;
import app.auto.designer.view.EditActivity;
import app.auto.runner.base.RRes;

public class TestActivity extends ActivityBase {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_auto_test);
        RRes.initR(this);
        Util.init(this);
        getView(R.id.test).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(v.getContext(), ExpActivity.class));
            }
        });
        getView(R.id.test2).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(v.getContext(), EditActivity.class));
            }
        });
        getView(R.id.test2).performClick();
        finish();
    }
}
